package org.thread.test05.demo01;

import java.util.concurrent.TimeUnit;

/**
 * @author ZJL
 * @date 2025-03-11
 */
public class MainTest {
    public static void main(String[] args) throws InterruptedException {
        DataCollectionThread dct = new DataCollectionThread();
        dct.start();
        TimeUnit.SECONDS.sleep(10);
//        Thread.sleep(10000);
        dct.interrupt();
    }
}
